Contents | Index | < Browse | Browse >

LETTERstricmpULETTER Compares two strings case-insensitively.

Overview
#include <string.h>

r = stricmp(s1,s2)

int r;
const char *s1;
const char *s2;

Portability
ANSI

Description
Compares the two strings similar to strcmp, but treats lowercase and uppercase ASCII characters equally.

Returns
Zero, if both strings are identical, <0 if the first string is "smaller" than the second, >0 otherwise.

See also
strcmp